-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up tests #10
Setting up tests #10
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Reviewer's Guide by SourceryThis pull request sets up the testing environment for the Salad UI project. It includes the addition of a GitHub workflow for automated testing, new dependencies for testing, a test helper module, and initial test cases for the Alert component. Additionally, it includes code formatting improvements across several files. File-Level Changes
Tips
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @kamaroly - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Hard-coded secret found in GitHub Actions workflow. (link)
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🔴 Security: 1 blocking issue
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
Goal
Making it easier for the developer to do TDD while adding feature to salad UI or fixing bugs.
Changelist
mix test.watch
to make it easier for TDD.mix.exs
ComponentCase
test helper, for the unit tests.SaladUI.AlertTest
test for the alert component tests.Summary by Sourcery
This pull request sets up the testing infrastructure for the project. It introduces
mix test.watch
for TDD, adds necessary dependencies and aliases inmix.exs
, and includes a GitHub workflow for running tests on specific branches. Additionally, it adds aComponentCase
test helper and a test suite for the alert component. The README.md has been updated with instructions for running tests and formatting code.mix test.watch
for easier Test-Driven Development (TDD).ComponentCase
test helper for unit tests.SaladUI.AlertTest
for alert component tests.mix.exs
to include necessary dependencies for testing and added aliases for common tasks.salad_ui_test.exs
.